//var source = read("ztest.js");

var source = "" +
"x = 1;" + "\n" +
"if (x > 0) {" + "\n" +
"        y = x + 2;" + "\n" +
"        print(y);" + "\n" +
"}";

print("\n------- source");
print(source);
print("");

print("------- astStr = JSON.AST.parse(source);");
var astStr = JSON.AST.parse(source);
print(astStr);
print("");

print("------- JSON.parse(astStr);");
var astobj = JSON.parse(astStr);
print(astobj);
print("");

/*
print("------- JSON.stringify(astobj, null, 2);");
var str = JSON.stringify(astobj, null, 2);
print(str);
*/
